<html>
<#include "../common/header.ftl">

<body>
<div id="wrapper" class="toggled">

    <#--边栏sidebar-->
    <#include "../common/nav2.ftl">

    <#--主要内容content-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix" >
                <div class="col-md-12 column">
                    <table class="table table-bordered table-condensed">
                        <thead>
                        <tr>
                            <th>发货单id</th>
                            <th>合同id</th>
                            <th>商品id</th>
                            <th>发货数量</th>
                            <th>发货状态</th>
                            <th colspan="2">操作</th>
                        </tr>
                        </thead>
                        <tbody>

                        <#list sendInfoPage.list as sendInfo>
                            <tr>
                                <td>${sendInfo.sendId}</td>
                                <td>${sendInfo.contactId}</td>
                                <td>${sendInfo.productId}</td>
                                <td>${sendInfo.productQuantity}</td>
                                <td>${sendInfo.getSendProductStatusEnum().message}</td>
                                <td><a href="/sell/seller/sendProduct/detail?sendId=${sendInfo.sendId}">详情</a></td>
                                <td>
                                    <#if sendInfo.getFinshStatus() == 1 >
                                        <a href="/sell/seller/logist/index?sendId=${sendInfo.sendId}">物流信息</a>
                                    </#if>
                                </td>
                            </tr>
                        </#list>
                        </tbody>
                    </table>
                </div>

                <#--分页-->
                <div class="col-md-12 column " >
                    <ul class="pagination pull-right ">
                        <#if currentPage lte 1>
                            <li class="disabled"><a href="#">上一页</a></li>
                        <#else>
                            <li><a href="/sell/seller/sendProduct/list?page=${currentPage - 1}&size=${size}">上一页</a></li>
                        </#if>

                        <#list 1..totalpage as index>
                            <#if currentPage == index>
                                <li class="disabled"><a href="#">${index}</a></li>
                            <#else>
                                <li><a href="/sell/seller/sendProduct/list?page=${index}&size=${size}">${index}</a></li>
                            </#if>
                        </#list>

                        <#if currentPage gte totalpage>
                            <li class="disabled"><a href="#">下一页</a></li>
                        <#else>
                            <li><a href="/sell/seller/sendProduct/list?page=${currentPage + 1}&size=${size}">下一页</a></li>
                        </#if>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</div>
</body>
</html>